package lab01;

public class Test10 {
    public static void main(String[] args) {
        System.out.println("99内的素数为：");
        int a;
        int b;
        int c=0;
        for (a = 2; a < 101; a++) {
            for (b = 2; b <= a/2; b++) {
                if (a % b == 0) {
                    break;
                }

            }if (b > a/2) {
                c++;
                System.out.print(a + "    ");
                if (c%5==0)
                    System.out.println();
            }
        }
    }
}
